﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace SerializeProject
{
    public class Node
    {
        public string Name { get; set; }
        public object Value { get; set; }
        public bool IsComposedType { get; set; }
        public bool IsRoot { get; set; }
        public bool IsIEnumerable { get; set; }

        public List<Node> ChildNodes { get; set; }
        public Node()
        {
            IsComposedType = false;
            IsIEnumerable = false;
        }
        public void setChildNodes()
        {
            ChildNodes = new List<Node>(); 
        }

        public void addChildNode(Node node)
        {
            ChildNodes.Add(node);
        }

#if oldefinition
        public MemberInfo ParentMember { get; set; }
        public MemberInfo CurrentMember { get; set; }
#endif

    }//Class
}//Namespace

